﻿#ifndef UDPRECEIVER_H
#define UDPRECEIVER_H

#include <QObject>
#include <QUdpSocket>
#include <QJsonObject>

class UdpReceiver : public QObject
{
    Q_OBJECT
public:
    explicit UdpReceiver(QObject *parent = nullptr);
    bool setPort(int port);
    void processData();
    void breakLink();
private:
    QUdpSocket *receiver;
signals:
    void receiveJson(QJsonObject);
};

#endif // UDPRECEIVER_H
